package com.feature.core.constant;

/**
 * 通用常量信息
 * 
 */
public class Constants {
	/**
	 * UTF-8 字符集
	 */
	public static final String UTF8 = "UTF-8";

	/**
	 * GBK 字符集
	 */
	public static final String GBK = "GBK";

	/**
	 * www主域
	 */
	public static final String WWW = "www.";

	/**
	 * http请求
	 */
	public static final String HTTP = "http://";

	/**
	 * https请求
	 */
	public static final String HTTPS = "https://";

	/**
	 * 成功编码
	 */
	public static final String SUCCESS = "success";

	/**
	 * 失败编码
	 */
	public static final String FAIL = "fail";
	/**
	 * 错误码和message分隔符号
	 */
	public static final String ERROR_CODE_MESSAGE_SPLIT = ":";

	/**
	 * 自动识别json对象白名单配置（仅允许解析的包名，范围越小越安全）
	 */
	public static final String[] JSON_WHITELIST_STR = { "org.springframework", "com.feature" };
}
